Optimal. Leaf size=142 \[ \frac {2 a \left (a^2+b^2\right ) \cos (c+d x) \sin ^{\frac {b^2}{a^2+b^2}}(c+d x) \, _2F_1\left (\frac {1}{2},\frac {b^2}{2 \left (a^2+b^2\right )};\frac {1}{2} \left (3-\frac {a^2}{a^2+b^2}\right );\sin ^2(c+d x)\right )}{b d \sqrt {\cos ^2(c+d x)}}-\frac {\left (a^2+b^2\right ) \cos (c+d x) \sin ^{-\frac {a^2}{a^2+b^2}}(c+d x)}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.12, antiderivative size = 142, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 36, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {2789, 2643, 3011} \[ \frac {2 a \left (a^2+b^2\right ) \cos (c+d x) \sin ^{\frac {b^2}{a^2+b^2}}(c+d x) \, _2F_1\left (\frac {1}{2},\frac {b^2}{2 \left (a^2+b^2\right )};\frac {1}{2} \left (3-\frac {a^2}{a^2+b^2}\right );\sin ^2(c+d x)\right )}{b d \sqrt {\cos ^2(c+d x)}}-\frac {\left (a^2+b^2\right ) \cos (c+d x) \sin ^{-\frac {a^2}{a^2+b^2}}(c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2643
Rule 2789
Rule 3011
Rubi steps
\begin {align*} \int \sin ^{-1-\frac {a^2}{a^2+b^2}}(c+d x) (a+b \sin (c+d x))^2 \, dx &=(2 a b) \int \sin ^{-\frac {a^2}{a^2+b^2}}(c+d x) \, dx+\int \sin ^{-1-\frac {a^2}{a^2+b^2}}(c+d x) \left (a^2+b^2 \sin ^2(c+d x)\right ) \, dx\\ &=-\frac {\left (a^2+b^2\right ) \cos (c+d x) \sin ^{-\frac {a^2}{a^2+b^2}}(c+d x)}{d}+\frac {2 a \left (a^2+b^2\right ) \cos (c+d x) \, _2F_1\left (\frac {1}{2},\frac {b^2}{2 \left (a^2+b^2\right )};\frac {1}{2} \left (3-\frac {a^2}{a^2+b^2}\right );\sin ^2(c+d x)\right ) \sin ^{\frac {b^2}{a^2+b^2}}(c+d x)}{b d \sqrt {\cos ^2(c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.30, size = 188, normalized size = 1.32 \[ -\frac {\cos (c+d x) \sin ^{-\frac {a^2}{a^2+b^2}}(c+d x) \sin ^2(c+d x)^{-\frac {b^2}{2 \left (a^2+b^2\right )}} \left (\sqrt {\sin ^2(c+d x)} \left (a^2 \, _2F_1\left (\frac {1}{2},\frac {a^2}{2 \left (a^2+b^2\right )}+1;\frac {3}{2};\cos ^2(c+d x)\right )+b^2 \, _2F_1\left (\frac {1}{2},\frac {a^2}{2 \left (a^2+b^2\right )};\frac {3}{2};\cos ^2(c+d x)\right )\right )+2 a b \sin (c+d x) \, _2F_1\left (\frac {1}{2},\frac {1}{2} \left (\frac {a^2}{a^2+b^2}+1\right );\frac {3}{2};\cos ^2(c+d x)\right )\right )}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.49, size = 0, normalized size = 0.00 \[ {\rm integral}\left (-{\left (b^{2} \cos \left (d x + c\right )^{2} - 2 \, a b \sin \left (d x + c\right ) - a^{2} - b^{2}\right )} \sin \left (d x + c\right )^{-\frac {2 \, a^{2} + b^{2}}{a^{2} + b^{2}}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b \sin \left (d x + c\right ) + a\right )}^{2} \sin \left (d x + c\right )^{-\frac {a^{2}}{a^{2} + b^{2}} - 1}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 10.98, size = 0, normalized size = 0.00 \[ \int \left (\sin ^{-1-\frac {a^{2}}{a^{2}+b^{2}}}\left (d x +c \right )\right ) \left (a +b \sin \left (d x +c \right )\right )^{2}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b \sin \left (d x + c\right ) + a\right )}^{2} \sin \left (d x + c\right )^{-\frac {a^{2}}{a^{2} + b^{2}} - 1}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {{\left (a+b\,\sin \left (c+d\,x\right )\right )}^2}{{\sin \left (c+d\,x\right )}^{\frac {a^2}{a^2+b^2}+1}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (a + b \sin {\left (c + d x \right )}\right )^{2} \sin ^{- \frac {a^{2}}{a^{2} + b^{2}} - 1}{\left (c + d x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________